package nl.hanze.webservice;

import javax.jws.WebMethod;
import javax.jws.WebService;

/**
 * Thema 4.2
 * Week 2
 * opdracht 1b
 * 
 * @author j. stellingwerf
 *
 */
@WebService
public class StudentService {
	/**
	 * Thema 4.2
	 * Week 2
	 * opdracht 1b
	 * 
	 * @param name
	 * @return
	 */
	@WebMethod
	public String getStudent(String name){
		System.out.println("Naam: "+name);
		Student student = new Student();
		student.setNaam(name);
		student.setGeslacht(true);
		student.setLeetijd(18);
		
		return student.toXML();
	}
}